﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataTier
{

    public class Person
    {
        private string _firstName;
        private string _lastName;
        private string _address;
        private int _zipCode;
        private string _city;
        private string _email;
        private string _phone;

        public Person()
        {
        }

        public Person(string firstName, string lastName, string address, int zipCode, string email, string phone)
        {
            _firstName = firstName;
            _lastName = lastName;
            _address = address;
            _zipCode = zipCode;
            _email = email;
            _phone = phone;
        }

        public string FirstName
        {
            get { return _firstName; }
            set { _firstName = value; }
        }

        public string LastName
        {
            get { return _lastName; }
            set { _lastName = value; }
        }

        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }

        public int ZipCode
        {
            get { return _zipCode; }
            set { _zipCode = value; }
        }

        public string City
        {
            get { return _city; }
            set { _city = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }

        public override string ToString()
        {
            return FirstName + " " + LastName;
        }

    }

}
